package config

import (
	"github.com/zeromicro/go-zero/core/stores/cache"
	"github.com/zeromicro/go-zero/rest"
)

type Config struct {
	rest.RestConf
	Auth struct {
		AccessSecret string
		AccessExpire int64
	}
	Mysql struct {
		DataSource string
	}
	{% if cookiecutter.use_redis == 'y' %}
	Redis struct {
		Address string
		Pass    string
	}
	{% endif %}
	{% if cookiecutter.use_mongo == 'y' %}
	Mongo struct {
		Address  string
		UserName string
		Password string
		DB       string
	}
	{% endif %}
	{% if cookiecutter.use_redis == 'y' %}
	CacheRedis    cache.CacheConf
	{% endif %}
	APP           string
	{% if cookiecutter.use_wechat == 'y' %}
	WeChat struct {
		APP struct {
			AppSecret string
			AppID     string
		}
		H5 struct {
			AppSecret string
			AppID     string
		}
	}
	{% endif %}
	{% if cookiecutter.use_eid == 'y' %}
	EID struct {
		AppKey string
		AppSecret string
		AppCode string
	}
	{% endif %}
}
